package com.ioffice.export.excel.type;

/**
 * 
 * @author <a href="mailto:goodluck.sunlight@gmail.com">chenboning</a>
 *
 * 
 * @descption 用来描述tree结构的数据结构(用记录单个Sheet对用的出来的数据对象)
 * 
 * <code>
 * 	<li>上表头对应的数据对象模型的那个id</li>
 *  <li>左表头对应的数据对象模型的那个Id</li>
 *  <li>交叉表头对应的数据对象模型的那个Id</li>
 *  <li>数据体对应的数据对象模型的那个Id</li>
 * </code>
 *
 * @version 1.0
 *
 *
 * @time  2013-5-21  上午11:11:54
 */
public class ExcelSheetTreeType extends ExcelSheetType {

	private int crossHeaderParentId=-99999;//交叉表头的父编号
	private int topHeaderParentId=-99999;//上表头的父编号
	private int leftHeaderParentId=-99999;//左表头的父编号
	private int dataBodyParentId=-99999;//数据体的父编号  一般情况下不会使用该属性,直接处理该相关数据
	
	public ExcelSheetTreeType() {
	}
	public ExcelSheetTreeType(String sheetName, int crossHeaderParentId, int topHeaderParentId, int leftHeaderParentId){
		this();
		this.sheetName = sheetName;
		this.crossHeaderParentId = crossHeaderParentId;
		this.topHeaderParentId = topHeaderParentId;
		this.leftHeaderParentId = leftHeaderParentId;
	}
	public ExcelSheetTreeType(String sheetName, int crossHeaderParentId, int topHeaderParentId, int leftHeaderParentId, int dataBodyParentId){
		this(sheetName, crossHeaderParentId, topHeaderParentId, leftHeaderParentId);
		this.dataBodyParentId = dataBodyParentId;
	}
	//full
	public ExcelSheetTreeType(String sheetName, int crossHeaderParentId, int topHeaderParentId, int leftHeaderParentId, int dataBodyParentId, String titleName) {
		super();
		this.sheetName = sheetName;
		this.crossHeaderParentId = crossHeaderParentId;
		this.topHeaderParentId = topHeaderParentId;
		this.leftHeaderParentId = leftHeaderParentId;
		this.dataBodyParentId = dataBodyParentId;
		this.titleName = titleName;
	}
	
	
	
	
	
	public int getCrossHeaderParentId() {
		return crossHeaderParentId;
	}
	public void setCrossHeaderParentId(int crossHeaderParentId) {
		this.crossHeaderParentId = crossHeaderParentId;
	}
	public int getTopHeaderParentId() {
		return topHeaderParentId;
	}
	public void setTopHeaderParentId(int topHeaderParentId) {
		this.topHeaderParentId = topHeaderParentId;
	}
	public int getLeftHeaderParentId() {
		return leftHeaderParentId;
	}
	public void setLeftHeaderParentId(int leftHeaderParentId) {
		this.leftHeaderParentId = leftHeaderParentId;
	}
	public int getDataBodyParentId() {
		return dataBodyParentId;
	}
	public void setDataBodyParentId(int dataBodyParentId) {
		this.dataBodyParentId = dataBodyParentId;
	}
	
}
